import Ball from "./Ball";

const { ccclass, property } = cc._decorator;

@ccclass
export default class MyMotionStreak extends cc.Component {

    @property(Ball)
    ball: Ball = null;

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    // start () {

    // }

    update(dt) {
        this.node.position = this.ball.node.position;
    }
}
